﻿using SketchUpAPI.NET.Enums;
using SketchUpAPI.NET.Objects;
using SketchUpAPI.NET.SketchUp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SketchUpConsole.Examples
{
    public static class ReadModel
    {
        public static void Run()
        {
            string path = @"ExampleFiles\3.skp";

            SketchUpApplication.Initialize();

            SketchUpModel skp = SketchUpModel.Read(path, out bool status);
            string version = skp.Version;
            var et = skp.Entities;
            List<SectionPlane> sp = et.SectionPlanes;

            SketchUpApplication.Terminate();
        }
    }
}